/*
package com.mongo.entity;

import com.mongodb.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import com.mongodb.client.MongoIterable;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.transaction.annotation.Transactional;

*/
/**
 * @program: ks
 * @description:
 * @author: Liu Weidong
 * @create: 2023-07-30 20:10
 **//*

@Data
@Document("student")
public class Addr {

    private String name;

    private Integer age;



    public static void main(String[] args) {
        MongoClient mongoClient = new MongoClient("192.168.175.130",27017);
        MongoDatabase student = mongoClient.getDatabase("student");
        MongoCollection<org.bson.Document> student1 = student.getCollection("student");
        // student1.insertMany();
    }

    @Transactional
    public void trans(){

    }
}
*/
